package com.dayaokeji.rhythmschoolstudent.utils;

import android.content.Context;

import com.dayaokeji.rhythmschoolstudent.R;
import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration;

/**
 * Created by Gorden on 2018/3/22.
 */

public class ItemDecorationUtil {

    public static HorizontalDividerItemDecoration horizontalDividerItemDecoration(Context context) {
       return new HorizontalDividerItemDecoration.Builder(context)
               .colorResId(R.color.color_default_divider)
               .sizeResId(R.dimen.default_divider_height)
               .build();
    }

    public static HorizontalDividerItemDecoration horizontalDividerItemDecoration(Context context,int size) {
        return new HorizontalDividerItemDecoration.Builder(context)
                .colorResId(R.color.colorPrimary)
                .size(size)
                .build();
    }

}
